package com.woniu.dao;

import com.woniu.domain.CourseComment;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author: ljy  <br/>
 * Date: 2021/6/8:12:16  <br/>
 * Description:评论持久化接口
 */

public interface CourseCommentDao {
    //根据课件id查询对应的评论
    @ApiOperation(value = "根据课件id查询对应的评论")
    @ApiImplicitParam(name = "sectionId",value = "课件id")
    List<CourseComment> ccGetById(@Param("sectionId") Integer sectionId);
	
	    //根据id查询评论
    @ApiOperation(value = "添加评论")
    @ApiImplicitParam(name = "obj",value = "courseComment")
    int addComment(CourseComment courseComment);
}
